const path = require('path');

module.exports = {
  appId: "com.zoulei.svg-to-image",
  productName: "SVG转图片工具",
  directories: {
    output: "dist"
  },
  files: [
    "electron/**/*",
    "server.js",
    "public/**/*",
    "uploads/**/*",
    "converted/**/*",
    "node_modules/**/*"
  ],
  electronDownload: {
    cache: path.join(__dirname, "electron-cache"),
    mirror: "https://npm.taobao.org/mirrors/electron/"
  },
  nsis: {
    oneClick: false,
    allowToChangeInstallationDirectory: true,
    createDesktopShortcut: true,
    createStartMenuShortcut: true,
    artifactName: "${productName}-Setup-${version}.${ext}"
  },
  electronVersion: "28.3.3",
  electronDist: path.join(__dirname, "node_modules/electron/dist"),
  win: {
    target: "nsis",
    icon: "electron/assets/icon.png"
  },
  nsis: {
    oneClick: false,
    allowToChangeInstallationDirectory: true,
    createDesktopShortcut: true,
    createStartMenuShortcut: true
  }
}; 